package com.back.demo.mapper;

import com.back.demo.mapper.myDO.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

//import java.util.List;

@Mapper
@Repository
public interface BasicMapper {
    User selectPasswordByUsername(@Param("username") String username);

    void insert(User user);

    User selectNameByUsername(@Param("username") String username);

    User selectInformationByUsername(@Param("username") String username);

    void changePassword(@Param("username") String username, @Param("newPassword") String newPassword);

    void changeInformation(@Param("username") String username, @Param("phone") String phone, @Param("email") String email);
}